<?php require_once('Connections/elevate954.php'); ?>
<?php require_once( "webassist/security_assist/helper_php.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Logged in to MEMBERS")){
	WA_Auth_RestrictAccess("login_members.php");
}
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}
?>
<?php
$Paramid_SecurityAssistMEMBERS = "-1";
if (isset($_SESSION["SecurityAssist_id"])) {
  $Paramid_SecurityAssistMEMBERS = $_SESSION["SecurityAssist_id"];
}
mysql_select_db($database_elevate954, $elevate954);
$query_SecurityAssistMEMBERS = sprintf("SELECT * FROM MEMBERS WHERE id = %s", $Paramid_SecurityAssistMEMBERS);
$SecurityAssistMEMBERS = mysql_query($query_SecurityAssistMEMBERS, $elevate954) or die(mysql_error());
$row_SecurityAssistMEMBERS = mysql_fetch_assoc($SecurityAssistMEMBERS);
$totalRows_SecurityAssistMEMBERS = mysql_num_rows($SecurityAssistMEMBERS);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Update User Information</title>
<script src="webassist/progress_bar/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<link href="webassist/forms/fd_basic_default.css" rel="stylesheet" type="text/css">
</head>

<body>
<?php if(WA_Auth_RulePasses("Validated form")){ // Begin Show Region ?>
<p>Invalid information, please check your entries and try again.</p>
<?php } // End Show Region ?>
<?php if(WA_Auth_RulePasses("Successful update")){ // Begin Show Region ?>
<p>Information updated successfully</p>
<?php } // End Show Region ?>
<div id="UpdateContainer" class="WAATK">
  <?php if ($totalRows_SecurityAssistMEMBERS > 0) { // Show if recordset not empty ?>
    <div id="UserUpdate_Basic_Default_ProgressWrapper">
      <form class="Basic_Default" id="UserUpdate_Basic_Default" name="UserUpdate_Basic_Default" method="post" action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">
        <fieldset class="Basic_Default" id="User_Update">
          <legend class="groupHeader">User Update</legend>
          <span class="fieldsetDescription"> Required * </span> <span class="buttonFieldGroup" >
            <input class="formButton" name="UserUpdate_submit" type="submit" id="UserUpdate_submit" value="Update"  >
            </span>
        </fieldset>
      </form>
    </div>
    <div id="UserUpdate_Basic_Default_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
      <script type="text/javascript">
WADFP_SetProgressToForm('UserUpdate_Basic_Default', 'UserUpdate_Basic_Default_ProgressMessageWrapper', WADFP_Theme_Options['BigSpin:Slate']);
      </script>
      <div id="UserUpdate_Basic_Default_ProgressMessage" >
        <p style="margin:10px; padding:5px;" ><img src="webassist/progress_bar/images/slate-largespin.gif" alt="" title="" style="vertical-align:middle;" />&nbsp;&nbsp;Please wait</p>
      </div>
    </div>
    <?php } // Show if recordset not empty ?>
  <?php if ($totalRows_SecurityAssistMEMBERS == 0) { // Show if recordset empty ?>
    <p>No record found.</p>
    <?php } // Show if recordset empty ?>
</div>
</body>
</html>
<?php
mysql_free_result($SecurityAssistMEMBERS);
?>
